package com.lywz.biz.common.entity.goodfood;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;

/**
 * 
 * @author qianqi yangboling
 * @since 2010-4-27
 * @version 1.0 食品的顶层分类目录（三级目录）
 * 
 */
@Entity
@EntityAnnotation
@NamedQueries(@NamedQuery(name = "FoodType.getDescriptionById", query = "from FoodType where foodTypeId =:foodTypeId"))
@Table(name = "t_foodType")
public class FoodType extends AbstractEntity {

    private static final long serialVersionUID = 457315781819973520L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer foodTypeId; //主键id(自增)
    
    private String foodTypeName; //美食类型名称

    private String foodTypeDescription; //描述

    //group 属性用于标示层次关系 比如黔菜汤菜属于特色菜品（1） 特色小食是（2）
    private Integer group;

    public Integer getGroup() {
        return group;
    }

    public void setGroup(Integer group) {
        this.group = group;
    }

    public Integer getFoodTopTypeId() {
        return foodTypeId;
    }

    public String getFoodTopTypeName() {
        return foodTypeName;
    }

    public void setFoodTopTypeName(String foodTopTypeName) {
        this.foodTypeName = foodTopTypeName;
    }

    public String getFoodTopTypeDescription() {
        return foodTypeDescription;
    }

    public void setFoodTopTypeDescription(String foodTopTypeDescription) {
        this.foodTypeDescription = foodTopTypeDescription;
    }
    
    /**
     * @return the foodTypeId
     */
    public Integer getFoodTypeId() {
        return foodTypeId;
    }

    /**
     * @return the foodTypeName
     */
    public String getFoodTypeName() {
        return foodTypeName;
    }

    /**
     * @return the foodTypeDescription
     */
    public String getFoodTypeDescription() {
        return foodTypeDescription;
    }

    /**
     * @param foodTypeId the foodTypeId to set
     */
    public void setFoodTypeId(Integer foodTypeId) {
        this.foodTypeId = foodTypeId;
    }

    /**
     * @param foodTypeName the foodTypeName to set
     */
    public void setFoodTypeName(String foodTypeName) {
        this.foodTypeName = foodTypeName;
    }

    /**
     * @param foodTypeDescription the foodTypeDescription to set
     */
    public void setFoodTypeDescription(String foodTypeDescription) {
        this.foodTypeDescription = foodTypeDescription;
    }

}
